package com.zzxy.spring2.po;

public interface BeanNameAware {
    String getUsername();

    void setUsername(String username);

    void setBeanName(String beanName);

    default void setBeanFactory(BeanFactory beanFactory) throws BeansException {
        System.out.println("4. set bean factory:" + beanFactory);
    }

    void afterPropertiesSet() throws Exception;

    void myInit();

    void destroy() throws Exception;

    void myDestroy();
}
